package com.design.callback;

public class Server {

	public void getClientMsg(CSCallBack callback, String msg) {
		System.out.println("服务端收到客户端发送消息:" + msg);

		// 模拟服务端需要对数据进行处理
		try {
			Thread.sleep(5 * 1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("服务端数据处理成功");
		callback.process("OK");
	}

}
